from utils.client import APIClient
from utils.yaml_config import get_yaml

data = get_yaml('data_set.yaml')

class Api_DataSet:

    
    def __init__(self,client:APIClient):
        self.client = client

    def api_miss_status_get(self):
        set_data = data['miss_status_get']['request']
        return self.client.request(set_data['method'],set_data['path'])
    
    def api_type_get(self):
        set_data = data['type_get']['request']
        return self.client.request(set_data['method'],set_data['path'])
    
    def api_all(self):
        set_data = data['all']['request']
        return self.client.request(set_data['method'],set_data['path'])

    def api_invalid_status_get(self):
        set_data = data['invalid_status_get']['request']
        return self.client.request(set_data['method'],set_data['path'])

    def api_filter_get(self):
        set_data = data['filter_get']['request']
        return self.client.request(set_data['method'],set_data['path'],json=set_data['json'])
